#include "sKeepAlive.h"

#include <sstream>
#include <Poco/DOM/Document.h>
#include <Poco/DOM/NodeIterator.h>
#include "misc/Interface.h"
#include "misc/Debug.h"
#include "server/net/NetworkControl.h"
/*********************************************************/
void sKeepAlive::execute()
{
	ack();		// Just ack the keep alive message to respond
}
/*********************************************************/
std::string sKeepAlive::serialize() const
{
	NetworkControl& ns = NetworkControl::Instance();
	std::ostringstream		ostr;

	ostr << "<GS id='" << ns.getID() << "'>";
	ostr << "<KeepAlive></KeepAlive>";
	ostr << "</GS>";

	return( ostr.str() );
}
/*********************************************************/
void sKeepAlive::deserialize(Poco::XML::NodeIterator& it)
{
	// This message doesn't carry any specific data
}
/*********************************************************/
